﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Xml.Serialization;
using System.Collections.ObjectModel;

namespace SetCLib
{
    public class TitleValue : INotifyPropertyChanged
    {
        #region Properties

        private string _Title;
        public string Title
        {
            get { return _Title; }
            set
            {
                _Title = value;
                OnPropertyChanged("Title");
            }
        }
        private string _Visible;
        public string Visible
        {
            get { return _Visible; }
            set
            {
                _Visible = value;
                OnPropertyChanged("Visible");
            }
        }

        public string Tag
        {
            get;
            set;
        }

        #endregion

        #region NotifyChanges

        // Create the OnPropertyChanged method to raise the event
        protected void OnPropertyChanged(string name)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(name));
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;

        #endregion
    }


    public class TitleValueCollection : ObservableCollection<TitleValue> { } 
}
